import request from '@/utils/request'

// 查询换表明细列表
export function listTerminalsReplace(query) {
  return request({
    url: '/device/terminalsReplace/list',
    method: 'get',
    params: query
  })
}

// 查询换表明细详细
export function getTerminalsReplace(tenantId) {
  return request({
    url: '/device/terminalsReplace/' + tenantId,
    method: 'get'
  })
}

// 新增换表明细
export function addTerminalsReplace(data) {
  return request({
    url: '/device/terminalsReplace',
    method: 'post',
    data: data
  })
}

// 修改换表明细
export function updateTerminalsReplace(data) {
  return request({
    url: '/device/terminalsReplace',
    method: 'put',
    data: data
  })
}

// 删除换表明细
export function delTerminalsReplace(tenantId) {
  return request({
    url: '/device/terminalsReplace/' + tenantId,
    method: 'delete'
  })
}
